export default {
  data() {
    return {
      tableData: [],
      pageObj: {},
    }
  },
  methods: {
    async getList() {
      let res = await this.$store.dispatch(
        'queryTestExercisesHis',
        this.listQuery,
      )
      this.tableData = res.data
      this.pageObj = res
    },
    handlePreview(row) {
      this.$bus.$emit('showExerciseAnswer', row)
    },
    handleDelect(row) {
      this.deleteTips(async () => {
        await this.$store.dispatch('delTestExercisesHis', row)
        this.getList()
      })
    },
  },
}
